package com.jiayang.hhotel.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.jiayang.hhotel.R;
import com.jiayang.hhotel.bean.BuildNoModel;

import cn.droidlover.xdroidmvp.mvp.XActivity;

import static com.jiayang.hhotel.ui.GuestRoomSetActivity.BUILD_FLOOR_ACTIVITY;

/**
 * Created by Administrator on 2017/5/9 0009.
 */

public class GuestRoomMenuActivity extends XActivity implements View.OnClickListener{
    private Button loucengbtn,louhaobtn;
    @Override
    public void initData(Bundle savedInstanceState) {
        initView();
    }
    private void initView(){
        loucengbtn=(Button)findViewById(R.id.loucengbtn);
        louhaobtn=(Button) findViewById(R.id.louhaobtn);
        louhaobtn.setOnClickListener(this);
        loucengbtn.setOnClickListener(this);
    }
    @Override
    public int getLayoutId() {
        return R.layout.activity_gusetroommenu;
    }

    @Override
    public Object newP() {
        return null;
    }

    @Override
    public void onClick(View v) {
        Intent intent=null;
        switch (v.getId()){
            case R.id.louhaobtn:
                intent=new Intent(context, BuildingNoActivity.class);
                //intent.putExtra("type",BUILD_FLOOR_ACTIVITY);
                startActivity(intent);
                break;
            case R.id.loucengbtn:
                intent=new Intent(context, GuestRoomSetActivity.class);
                intent.putExtra("type",BUILD_FLOOR_ACTIVITY);
                startActivity(intent);
                break;
        }
    }
}
